function writeOutput(outputFile, totalSequence)

fid=fopen(outputFile,'w');
N=size(totalSequence,2);

for i=2:N-1
    fprintf(fid, '%f\t%f\t%f\n',totalSequence(1,i), totalSequence(2,i), totalSequence(3,i));
end

fclose(fid);